package cn.bdqn.model.pojo;

import java.util.ArrayList;
import java.util.List;

public class PeopleconditioninfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PeopleconditioninfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPeopleConditionNumberIsNull() {
            addCriterion("people_condition_number is null");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberIsNotNull() {
            addCriterion("people_condition_number is not null");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberEqualTo(Integer value) {
            addCriterion("people_condition_number =", value, "peopleConditionNumber");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberNotEqualTo(Integer value) {
            addCriterion("people_condition_number <>", value, "peopleConditionNumber");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberGreaterThan(Integer value) {
            addCriterion("people_condition_number >", value, "peopleConditionNumber");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("people_condition_number >=", value, "peopleConditionNumber");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberLessThan(Integer value) {
            addCriterion("people_condition_number <", value, "peopleConditionNumber");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberLessThanOrEqualTo(Integer value) {
            addCriterion("people_condition_number <=", value, "peopleConditionNumber");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberIn(List<Integer> values) {
            addCriterion("people_condition_number in", values, "peopleConditionNumber");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberNotIn(List<Integer> values) {
            addCriterion("people_condition_number not in", values, "peopleConditionNumber");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberBetween(Integer value1, Integer value2) {
            addCriterion("people_condition_number between", value1, value2, "peopleConditionNumber");
            return (Criteria) this;
        }

        public Criteria andPeopleConditionNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("people_condition_number not between", value1, value2, "peopleConditionNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberIsNull() {
            addCriterion("loss_assessment_number is null");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberIsNotNull() {
            addCriterion("loss_assessment_number is not null");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberEqualTo(Integer value) {
            addCriterion("loss_assessment_number =", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberNotEqualTo(Integer value) {
            addCriterion("loss_assessment_number <>", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberGreaterThan(Integer value) {
            addCriterion("loss_assessment_number >", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("loss_assessment_number >=", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberLessThan(Integer value) {
            addCriterion("loss_assessment_number <", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberLessThanOrEqualTo(Integer value) {
            addCriterion("loss_assessment_number <=", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberIn(List<Integer> values) {
            addCriterion("loss_assessment_number in", values, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberNotIn(List<Integer> values) {
            addCriterion("loss_assessment_number not in", values, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberBetween(Integer value1, Integer value2) {
            addCriterion("loss_assessment_number between", value1, value2, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("loss_assessment_number not between", value1, value2, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andWoundedNameIsNull() {
            addCriterion("wounded_name is null");
            return (Criteria) this;
        }

        public Criteria andWoundedNameIsNotNull() {
            addCriterion("wounded_name is not null");
            return (Criteria) this;
        }

        public Criteria andWoundedNameEqualTo(String value) {
            addCriterion("wounded_name =", value, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameNotEqualTo(String value) {
            addCriterion("wounded_name <>", value, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameGreaterThan(String value) {
            addCriterion("wounded_name >", value, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameGreaterThanOrEqualTo(String value) {
            addCriterion("wounded_name >=", value, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameLessThan(String value) {
            addCriterion("wounded_name <", value, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameLessThanOrEqualTo(String value) {
            addCriterion("wounded_name <=", value, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameLike(String value) {
            addCriterion("wounded_name like", value, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameNotLike(String value) {
            addCriterion("wounded_name not like", value, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameIn(List<String> values) {
            addCriterion("wounded_name in", values, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameNotIn(List<String> values) {
            addCriterion("wounded_name not in", values, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameBetween(String value1, String value2) {
            addCriterion("wounded_name between", value1, value2, "woundedName");
            return (Criteria) this;
        }

        public Criteria andWoundedNameNotBetween(String value1, String value2) {
            addCriterion("wounded_name not between", value1, value2, "woundedName");
            return (Criteria) this;
        }

        public Criteria andConditionIsNull() {
            addCriterion("condition is null");
            return (Criteria) this;
        }

        public Criteria andConditionIsNotNull() {
            addCriterion("condition is not null");
            return (Criteria) this;
        }

        public Criteria andConditionEqualTo(String value) {
            addCriterion("condition =", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionNotEqualTo(String value) {
            addCriterion("condition <>", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionGreaterThan(String value) {
            addCriterion("condition >", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionGreaterThanOrEqualTo(String value) {
            addCriterion("condition >=", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionLessThan(String value) {
            addCriterion("condition <", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionLessThanOrEqualTo(String value) {
            addCriterion("condition <=", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionLike(String value) {
            addCriterion("condition like", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionNotLike(String value) {
            addCriterion("condition not like", value, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionIn(List<String> values) {
            addCriterion("condition in", values, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionNotIn(List<String> values) {
            addCriterion("condition not in", values, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionBetween(String value1, String value2) {
            addCriterion("condition between", value1, value2, "condition");
            return (Criteria) this;
        }

        public Criteria andConditionNotBetween(String value1, String value2) {
            addCriterion("condition not between", value1, value2, "condition");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryIsNull() {
            addCriterion("expense_category is null");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryIsNotNull() {
            addCriterion("expense_category is not null");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryEqualTo(String value) {
            addCriterion("expense_category =", value, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryNotEqualTo(String value) {
            addCriterion("expense_category <>", value, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryGreaterThan(String value) {
            addCriterion("expense_category >", value, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryGreaterThanOrEqualTo(String value) {
            addCriterion("expense_category >=", value, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryLessThan(String value) {
            addCriterion("expense_category <", value, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryLessThanOrEqualTo(String value) {
            addCriterion("expense_category <=", value, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryLike(String value) {
            addCriterion("expense_category like", value, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryNotLike(String value) {
            addCriterion("expense_category not like", value, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryIn(List<String> values) {
            addCriterion("expense_category in", values, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryNotIn(List<String> values) {
            addCriterion("expense_category not in", values, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryBetween(String value1, String value2) {
            addCriterion("expense_category between", value1, value2, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andExpenseCategoryNotBetween(String value1, String value2) {
            addCriterion("expense_category not between", value1, value2, "expenseCategory");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsIsNull() {
            addCriterion("subtotal_costs is null");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsIsNotNull() {
            addCriterion("subtotal_costs is not null");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsEqualTo(Integer value) {
            addCriterion("subtotal_costs =", value, "subtotalCosts");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsNotEqualTo(Integer value) {
            addCriterion("subtotal_costs <>", value, "subtotalCosts");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsGreaterThan(Integer value) {
            addCriterion("subtotal_costs >", value, "subtotalCosts");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsGreaterThanOrEqualTo(Integer value) {
            addCriterion("subtotal_costs >=", value, "subtotalCosts");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsLessThan(Integer value) {
            addCriterion("subtotal_costs <", value, "subtotalCosts");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsLessThanOrEqualTo(Integer value) {
            addCriterion("subtotal_costs <=", value, "subtotalCosts");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsIn(List<Integer> values) {
            addCriterion("subtotal_costs in", values, "subtotalCosts");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsNotIn(List<Integer> values) {
            addCriterion("subtotal_costs not in", values, "subtotalCosts");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsBetween(Integer value1, Integer value2) {
            addCriterion("subtotal_costs between", value1, value2, "subtotalCosts");
            return (Criteria) this;
        }

        public Criteria andSubtotalCostsNotBetween(Integer value1, Integer value2) {
            addCriterion("subtotal_costs not between", value1, value2, "subtotalCosts");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}